package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品批次对象 pms_batch
 *
 * @author ruoyi
 * @date 2024-11-11
 */
@Data
public class PmsBatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 批次id */
    private Long batchId;

    /** 批次名称 */
    @Excel(name = "批次名称")
    private String name;

    /** 批次编号 */
    @Excel(name = "批次编号")
    private String number;

    /** 订购开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订购开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date timeLimitStart;

    /** 订购结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订购结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date timeLimitEnd;

    public void setBatchId(Long batchId)
    {
        this.batchId = batchId;
    }

    public Long getBatchId()
    {
        return batchId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNumber(String number)
    {
        this.number = number;
    }

    public String getNumber()
    {
        return number;
    }
    public void setTimeLimitStart(Date timeLimitStart)
    {
        this.timeLimitStart = timeLimitStart;
    }

    public Date getTimeLimitStart()
    {
        return timeLimitStart;
    }
    public void setTimeLimitEnd(Date timeLimitEnd)
    {
        this.timeLimitEnd = timeLimitEnd;
    }

    public Date getTimeLimitEnd()
    {
        return timeLimitEnd;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("batchId", getBatchId())
            .append("name", getName())
            .append("number", getNumber())
            .append("timeLimitStart", getTimeLimitStart())
            .append("timeLimitEnd", getTimeLimitEnd())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
